package cn.jdy.plugins.entity;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;

import cn.jdy.common.bo.BaseEntry;

/***
 * @desc   相关视频实体类
 * @author lph
 * @date   2017-03-22
 */
@Entity
public class RelatedVideo extends BaseEntry{
	private static final long serialVersionUID = 1L;

	@Id
	@GeneratedValue(strategy = GenerationType.AUTO)
	private Long id;             //相关视频id
	private String videoName;    //视频名称
	private String videoLength;  //视频时长
	@Column(columnDefinition = "longtext")
	private String videoDesc;    //视频描述
	private String releaseTime;  //视频发布时间
	private String videoUrl;     //视频地址
	private Integer watchNumber; //观看人数
	private String videoImage;   //视频缩略图
	private String startTime;    //开始时间
	private String endTime;      //结束时间
	private String currentStatus;//当前状态 1 选中 2 未选择
	
	@ManyToOne
	@JoinColumn(name = "liveId", insertable = false, updatable = false)
	private Live live;
	private Long liveId;        //直播id
	private String liveName;    //直播间名称
	private String liveurl;    //直播线路
    private String mainid;// 主线路id
	private String backid;//  备用线路id
	
	public Long getId() {
		return id;
	}
	public void setId(Long id) {
		this.id = id;
	}
	public String getVideoName() {
		return videoName;
	}
	public void setVideoName(String videoName) {
		this.videoName = videoName;
	}
	public String getVideoLength() {
		return videoLength;
	}
	public void setVideoLength(String videoLength) {
		this.videoLength = videoLength;
	}
	public String getVideoDesc() {
		return videoDesc;
	}
	public void setVideoDesc(String videoDesc) {
		this.videoDesc = videoDesc;
	}
	public String getReleaseTime() {
		return releaseTime;
	}
	public void setReleaseTime(String releaseTime) {
		this.releaseTime = releaseTime;
	}
	public String getVideoUrl() {
		return videoUrl;
	}
	public void setVideoUrl(String videoUrl) {
		this.videoUrl = videoUrl;
	}
	public String getVideoImage() {
		return videoImage;
	}
	public void setVideoImage(String videoImage) {
		this.videoImage = videoImage;
	}
	public Live getLive() {
		return live;
	}
	public void setLive(Live live) {
		this.live = live;
	}
	public Long getLiveId() {
		return liveId;
	}
	public void setLiveId(Long liveId) {
		this.liveId = liveId;
	}
	public String getLiveName() {
		return liveName;
	}
	public void setLiveName(String liveName) {
		this.liveName = liveName;
	}
	public Integer getWatchNumber() {
		return watchNumber;
	}
	public void setWatchNumber(Integer watchNumber) {
		this.watchNumber = watchNumber;
	}
	public String getStartTime() {
		return startTime;
	}
	public void setStartTime(String startTime) {
		this.startTime = startTime;
	}
	public String getEndTime() {
		return endTime;
	}
	public void setEndTime(String endTime) {
		this.endTime = endTime;
	}
	public String getCurrentStatus() {
		return currentStatus;
	}
	public void setCurrentStatus(String currentStatus) {
		this.currentStatus = currentStatus;
	}
	public String getLiveurl() {
		return liveurl;
	}
	public void setLiveurl(String liveurl) {
		this.liveurl = liveurl;
	}
	public String getMainid() {
		return mainid;
	}
	public void setMainid(String mainid) {
		this.mainid = mainid;
	}
	public String getBackid() {
		return backid;
	}
	public void setBackid(String backid) {
		this.backid = backid;
	}
	
}
